// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import { ToastPlugin } from 'vux';
import router from './router';
import store from './store/index';
import axiosPlugin from '@/utils/http';
import App from './App';
import Home from './components/HelloFromVux';

Vue.use(ToastPlugin);
Vue.use(axiosPlugin); // 组件中通过this.$http获取到axios对象

Vue.prototype.$msg = Vue.$vux.toast.text;

Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app-box');
